How to print only first levels in a Layout DXL?

I have objects in module B linked to objects in module A. In A the objects are only headings with Object Numbers like 1, 1.1, 1.2.1 etc.

If an object in B is linked to object in A with, say, Object Number = 1.3.1.2, then it is also linked to objects in A with Object Number = 1, 1.3 and 1.3.1.

Now in B, I would like to create a column which includes Object Identifiers and Object Headings with Object Numbers n and n.n, that is, only up to level 2. How can this be done?


KHuhtala - Tue Jan 22 07:07:47 EST 2019

Re: How to print only first levels in a Layout DXL?
PekkaMakinen - Tue Jan 22 08:01:20 EST 2019

Terve Kyösti!

In DXL there is a function "level", which allows you to get the level of the object "level(o)". Thus in your layout DXL (I presume it has been made with Analysis Wizard) you can add within the loop going over all the links a line to continue the loop if level is over 2, i.e.

if (level(o) > 2) continue

The object variable o can be something else...